package com.cjw.pojo.entity.database;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Table;
import java.sql.Date;

/**
 * @create_time: 2021.11.22
 * @author : cjw
 * @descripe: minio文件存储记录
 */
@Data
@Table(name = "minio_file")
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel("minio文件存储记录")
public class MinioFile extends BaseEntity{
    @ApiModelProperty("文件url")
    private String url;

    @ApiModelProperty("文件大小")
    private Double size;

    @ApiModelProperty("下载次数")
    private Integer downNumber;

    @ApiModelProperty("最新下载时间")
    private Date downLastTime;

    @ApiModelProperty("文件类型")
    private Integer type;
}
